import request from '@/utils/request'

/* export function getList(params) {
  return request({
    url: '/table/list',
    method: 'get',
    params
  })
} */
export default{
  hospitalSetList(current,limit,searchObj){
    return request({
      url:`/admin/hosp/hospitalSet/findPageHospSet/${current}/${limit}`,
      method:'post',
      data:searchObj //使用json
    })
  },
  removeHospitalSet(id){
    return request({
      url:`/admin/hosp/hospitalSet/${id}`,
      method:'delete'
    })
  },
  removeHospitalSetBath(idList){
    return request({
      url:`/admin/hosp/hospitalSet/batchRemove`,
      method:'delete',
      data:idList
    })
  },
  lockHospitalSet(id,status){
    return request({
      url:`/admin/hosp/hospitalSet/lockHospitalSet/${id}/${status}`,
      method:'put'
    })
  },
  saveHospitalSet(hospitalSet){
    return request({
      url:`/admin/hosp/hospitalSet/saveHospitalSet`,
      method:'post',
      data:hospitalSet
    })
  },
  updateHospitalSet(hospitalSet){
    return request({
      url:`/admin/hosp/hospitalSet/updateHospitalSet`,
      method:'post',
      data:hospitalSet
    })
  },
  getHospitalSet(id){
    return request({
      url:`/admin/hosp/hospitalSet/getHospitalSet/${id}`,
      method:'get'
    })
  }
}
